package com.wanmait.baohan.service.Impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.baohan.mapper.ContractMapper;
import com.wanmait.baohan.pojo.Contract;
import com.wanmait.baohan.service.ContractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class ContractServiceImpl implements ContractService {
    @Resource
    private ContractMapper contractMapper;
    @Override
    public void insert(Contract object) {
        contractMapper.insert(object);
    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(Contract object) {

    }

    @Override
    public Contract findById(Integer id) {
        return null;
    }

    @Override
    public List<Contract> findAll() {
        return null;
    }

    @Override
    public List<Contract> findAll(Contract object) {
        return null;
    }

    @Override
    public PageInfo<Contract> findPage(int pageNum) {
        return null;
    }

    @Override
    public PageInfo<Contract> findPage() {
        return null;
    }

    @Override
    public PageInfo<Contract> findPage(int pageNum, Contract object) {
        return null;
    }

    @Override
    public PageInfo<Contract> findPage(Contract object) {
        return null;
    }

    @Override
    public List<Contract> findAllContractForCustomer() {
        return contractMapper.findAllContractForCustomer();
    }
}
